package com.jz.subclass.test;

/**
 * Created by WISE on 2021/12/30.
 */
public enum PlanStatusEnum {

    QIYONG(1,"启用"),JINYONG(0,"禁用");

    private  Integer status;
    private  String statusaName;


    PlanStatusEnum(Integer status, String statusaName) {

        this.status = status;
        this.statusaName = statusaName;

    }
    public String getNameByStatus(Integer status){

      for (PlanStatusEnum planSTtatusEnum: PlanStatusEnum.values()){

          if (planSTtatusEnum.getStatus()==status)
              return planSTtatusEnum.getStatusaName();

      }
      return null;
    }


    public Integer getStatus(){

        return status;
    }
    public  String getStatusaName(){

        return statusaName;

    }
}
